package com.jason.redCherry.dao.Impl;

import com.jason.redCherry.base.BaseMyBatisDaoSupport;
import com.jason.redCherry.dao.ConfigMapper;
import com.jason.redCherry.entity.Config;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by Jason on 2016/9/5.
 */
@Repository
public class ConfigMapperImpl extends BaseMyBatisDaoSupport implements ConfigMapper {
    public static String NAME = "com.jason.redCherry.dao.ConfigMapper.";

    public int deleteByPrimaryKey(Integer sysId) {
        return 0;
    }

    public int insert(Config record) {
        return 0;
    }

    public Config selectByPrimaryKey(Integer sysId) {
        return null;
    }

    public List<Config> selectAll() {
        return null;
    }

    public int updateByPrimaryKey(Config record) {
        return this.getSqlSession().update(NAME + "updateByPrimaryKey", record);
    }

    public Config selectByKey(String key) {
        return this.getSqlSession().selectOne(NAME + "selectByKey", key);
    }
}
